import urllib.request

#下载网页
#url_page='http://www.baidu.com'
#urllib.request.urlretrieve(url_page,'baidu.html')
#下载图片
url_img='https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSPBOOP-u4OkhT8IRp2_j86zCODJh2-wML9JR-imidRWD6gaxOXnVAW&usqp=CAE&s'
urllib.request.urlretrieve(url_img, '1')
#urllib.request.urlretrieve(url_mp4, 'video.mp4')